<?php

/**
 * AnswerComment form.
 *
 * @package    docplus.co.za
 * @subpackage form
 * @author     Fox Matuku
 * @version    SVN: $Id: sfDoctrineFormTemplate.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class AnswerCommentForm extends BaseAnswerCommentForm
{
  public function configure()
  {
        unset(
            $this['created_at'], $this['updated_at']
        );

        $this->widgetSchema['answer_id'] = new sfWidgetFormInputHidden();
        $this->widgetSchema['response']->setAttribute("class", "answer-comment-answer");
        
        $this->widgetSchema['user_id'] = new sfWidgetFormInputHidden();
        $this->validatorSchema['response'] = new sfValidatorString(array('max_length' => 400, 'required' => true), array('required' => 'Your *comment* is required.', 'max_length' => 'Only 400 characters allowed!'));
  }
}
